package com.zb.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.zb.common.exception.BusinessException;
import com.zb.common.po.model.DownLoad;
import com.zb.common.po.query.DownLoadQuery;
import com.zb.common.utils.PaginationResult;

public interface DownloadService {
    public void downloadFile(String userId, HttpServletRequest request,
            HttpServletResponse response, Integer type)
            throws BusinessException;

    public PaginationResult<DownLoad> findDownLoadList(DownLoadQuery query);

    public DownLoad findDownloadByUserId(String userId);
}
